package com.changgou.web.order.controller;

import com.changgou.order.feign.CartFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@Controller
@RequestMapping("/index")
@CrossOrigin
public class IndexController {



    //跳转到登录页面
    @GetMapping
    public String list(Model model){

        return "index";
    }

    @RequestMapping("/home")
    public String toLogin(){

        return "home";
    }

    @RequestMapping("/myOrder")
    public String myOrder(){

        return "myOrder";
    }

    @RequestMapping("/addressList")
    public String addressList(){

        return "addressList";
    }
}
